	<%@ page contentType="text/html;charset=UTF-8" language="java" import="iso3.pt.action.*" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
	<head>
	    <link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
	    <title><s:text name="application.title"/></title>
	</head>
	<body>
		<h1 class="titleDiv"><s:text name="application.title"/></h1>
			<h2><s:text name="label.studentSubjectMarkingForm.cabecera"/></h2>
			<br/>
			<h2><s:text name="label.studentSubjectMarkingForm.gradeError"/></h2>
			<br/>
			<br/>
			
			<table class="borderAll">
				<tr>
					<th><s:text name="table.subjectStudents.dni"/></th>
					<th><s:text name="table.subjectStudents.name"/></th>
					<th><s:text name="table.subjectStudents.telephone"/></th>
					<th>&nbsp;&nbsp;</th>
				</tr>
				
				<s:iterator value="alumno" status="status">
					<tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
						<td class="nowrap"><s:property value="dni"/></td>
						<td class="nowrap"><s:property value="nombre"/></td>
						<td class="nowrap"><s:property value="telefono"/></td>
					</tr>
				</s:iterator>
			</table>
			
			
			
				
			<br/>
			<br/>
			
			<table class="borderAll">
		    <tr>
		        <th><s:text name="table.lecturerSubjects.code"/></th>
		        <th><s:text name="table.lecturerSubjects.name"/></th>
		        <th><s:text name="table.lecturerSubjects.credits"/></th>
		        <th><s:text name="table.lecturerSubjects.teacher"/></th>
		        <th><s:text name="table.lecturerSubjects.studentNumber"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
			
			
			 <s:iterator value="asignatura" status="status">
		        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
		            <td class="nowrap"><s:property value="codigo"/></td>
		            <td class="nowrap"><s:property value="nombre"/></td>
		            <td class="nowrap"><s:property value="creditos"/></td>
		            <td class="nowrap"><s:property value="%{profesor.getNombre()}"/></td>
		            <td class="nowrap"><s:property value="%{Alumnos.size()}"/></td>
		        </tr>
		    </s:iterator>
			</table>
			
			<br/>
			<br/>
			<br/>

			
			<s:form action="subjectStudent!addGrade" method="POST">
				<s:textfield name="concepto" label="%{getText('label.studentSubjectMarkingForm.concepto')}"/>
				<s:textfield name="nota" label="%{getText('label.studentSubjectMarkingForm.nota')}"/>
				<s:hidden name="subjectId" value="%{subjectId}" />
				<s:hidden name="dni" value="%{dni}"/>
				<s:submit value="%{getText('label.studentSubjectMarkingForm.button')}" align="left"/>
			</s:form>
		
		<FORM NAME="form1" METHOD="POST">
			<input type="button" value="Cancelar" align="right" onclick="javascript:history.go(-2)">
        </FORM>
		
		
</body>
</html>
